package com.lakeworks.mapper;

import com.lakeworks.domain.status.StaShipment;

import java.util.List;

/**
 * 出厂单状态Mapper接口
 *
 * @author lake
 * @date 2023-02-23
 */
public interface StaShipmentMapper {
    /**
     * 查询出厂单状态
     *
     * @param id 出厂单状态主键
     * @return 出厂单状态
     */
    StaShipment selectStaShipmentById(Long id);

    /**
     * 查询出厂单状态列表
     *
     * @param staShipment 出厂单状态
     * @return 出厂单状态集合
     */
    List<StaShipment> selectStaShipmentList(StaShipment staShipment);

    /**
     * 新增出厂单状态
     *
     * @param staShipment 出厂单状态
     * @return 结果
     */
    int insertStaShipment(StaShipment staShipment);

    /**
     * 修改出厂单状态
     *
     * @param staShipment 出厂单状态
     * @return 结果
     */
    int updateStaShipment(StaShipment staShipment);

    /**
     * 删除出厂单状态
     *
     * @param id 出厂单状态主键
     * @return 结果
     */
    int deleteStaShipmentById(Long id);

    /**
     * 批量删除出厂单状态
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteStaShipmentByIds(Long[] ids);

    int deleteStaShipmentByState(StaShipment staShipment);


    Integer selectStaShipmentByDate(String date);
}
